import request from '@/utils/request'

// 创建应用更新记录
export function createMgAppUpdate(data) {
  return request({
    url: '/mg/app-market-update/create',
    method: 'post',
    data: data
  })
}

// 更新应用更新记录
export function updateMgAppUpdate(data) {
  return request({
    url: '/mg/app-market-update/update',
    method: 'put',
    data: data
  })
}

// 删除应用更新记录
export function deleteMgAppUpdate(id) {
  return request({
    url: '/mg/app-market-update/delete?id=' + id,
    method: 'delete'
  })
}

// 获得应用更新记录
export function getMgAppUpdate(id) {
  return request({
    url: '/mg/app-market-update/get?id=' + id,
    method: 'get'
  })
}

// 获得应用更新记录分页
export function getMgAppUpdatePage(query) {
  return request({
    url: '/mg/app-market-update/page',
    method: 'get',
    params: query
  })
}

// 导出应用更新记录 Excel
export function exportMgAppUpdateExcel(query) {
  return request({
    url: '/mg/app-market-update/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
